global gdt_flush:function gdt_flush.flush-gdt_flush

gdt_flush:
	mov eax, [esp + 4]
	lgdt [eax]
	
	mov ax, 0x10
	mov ds, ax
	mov es, ax
	mov fs, ax
	mov gs, ax
	mov ss, ax
	jmp 0x08:.flush
.flush:
	ret

global tss_flush:function tss_flush.flush-tss_flush
tss_flush:
	mov eax, [esp + 4]
	ltr ax
.flush:
	ret